<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="/WEB-INF/template/basicTemplate.xhtml">

	<ui:define name="content">
		<head>
<title><h:outputText value="#{msg.delEmployee}" /></title>
		</head>
		<br />
		<f:event listener="#{angajatBean.verifyA()}" type="preRenderView"></f:event>
		<h:form>
			<div align="center">
				<h2></h2>
				<div style="overflow-y: scroll; height: 200px;">
					<h:dataTable value="#{angajatBean.angajati}" var="item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="#{msg.lastname}" />
							</f:facet>
							<h:outputText value="#{item.lastname}" />
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="#{msg.firstname}" />
							</f:facet>
							<h:outputText value="#{item.firstname}" />
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="#{msg.username}" />
							</f:facet>
							<h:outputText value="#{item.username}" />
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="#{msg.password}" />
							</f:facet>
							<h:outputText value="#{item.password}" />
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="#{msg.email}" />
							</f:facet>
							<h:outputText value="#{item.email}" />
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="#{msg.department}" />
							</f:facet>
							<h:outputText value="#{item.department}" />
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="#{msg.teamLeader}" />
							</f:facet>
							<h:outputText value="#{item.teamleaderro}" />
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value=" " />
							</f:facet>
							<h:commandButton action="#{angajatBean.delete(item)}"
								image="/resources/images/cross.png" />
						</h:column>
					</h:dataTable>
				</div>
				<h:commandButton value="#{msg.back}" styleClass="button"
					action="#{loginBean.inapoiA()}" immediate="true" />
				<br></br>
				<h:commandButton value="#{msg.logout}" styleClass="button"
					action="#{adminBean.logOut()}" immediate="true" />
				<br></br>
			</div>
		</h:form>
	</ui:define>
</ui:composition>
</html>